<?php
/*显示评论次数*/
include_once("../sql_connect.php");
                   
$w_id = $_POST[w_id];
/*检查comment表中w_id（微博id）最大w_ctimes（微博评论次数）*/
$comment_sql = mysql_query("select MAX(w_ctimes) from comment WHERE w_id = '$w_id'",$connection);	
$comment_result = mysql_fetch_array($comment_sql);
$comment_data = $comment_result[0];
echo $comment_data;
?>